<!--
 * @Author: hucc
 * @Date: 2021-10-09 14:18:48
 * @LastEditors: hucc
 * @LastEditTime: 2021-10-10 18:00:11
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 括号里面实参 -->
        <button @click="clickHandler(1,$event)">按钮1</button>
    </div>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {

            },
            methods: {
                //括号里面形参
                clickHandler(num, event) {
                    // console.log(event.target);   event.target： 触发事件处理对象源
                    console.log(num, event.target);
                }
            },
            created() {}
        })
    </script>
</body>

</html>